package router

import (
	"api-gateway/handler/api"
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {

	router := gin.Default()
	router.GET("/")
	router.GET("/physicallist", api.Physicallist)
	router.GET("/hospitalList", api.Hospital)
	router.POST("/longin", api.Longin)
	router.GET("/departmentlist", api.DepartmentList)
	router.POST("/departmentadd", api.DepartmentAdd)
	router.POST("/orderCreate", api.OrderCreate)
	router.GET("/orderuserlist", api.OrderUserList)
	router.GET("/doctorlist", api.DoctorList)
	router.POST("/orderUpdate", api.OrderUpdate)
	router.POST("/del", api.DelOrder)
	router.POST("/datilyadd", api.Datilyadd)
	router.POST("/onlineadd", api.OnLineadd)
	return router
}
